Code exists in the wild that calls this function after the widget has
been destroyed (and the pixel cache released). Simply check that the
pixel cache exists to preserve the existing state.
if (tree_view->priv->selection)
_gtk_tree_selection_emit_changed (tree_view->priv->selection);
- _gtk_pixel_cache_set_always_cache (tree_view->priv->pixel_cache, (model != NULL));
+ if (tree_view->priv->pixel_cache != NULL)
+ _gtk_pixel_cache_set_always_cache (tree_view->priv->pixel_cache, (model != NULL));
if (gtk_widget_get_realized (GTK_WIDGET (tree_view)))
gtk_widget_queue_resize (GTK_WIDGET (tree_view));